<?
function endsWith($FullStr, $EndStr)
{
    $StrLen = strlen($EndStr);
    $FullStrEnd = substr($FullStr, strlen($FullStr) - $StrLen);
    return $FullStrEnd == $EndStr;
}
?>